package com.wyw.redislock.learning;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ImportResource;

/**
 * @Title
 * @Description
 * @Author Mr Wu yewen.wu.china@gmail.com
 * @Date 2024/3/29 9:42
 * Update History:
 * Author        Time            Content
 */
@SpringBootApplication
@ImportResource("classpath*:redisson.xml")
public class RedisLockApplication {

    public static void main(String[] args) {
        SpringApplication.run(RedisLockApplication.class, args);
    }

//    @Bean(initMethod="start",destroyMethod = "close")
//    public CuratorFramework getCuratorFramework() {
//        RetryPolicy retryPolicy = new ExponentialBackoffRetry(1000, 3);
//        CuratorFramework client = CuratorFrameworkFactory.newClient("wyw:2181", retryPolicy);
//        return client;
//    }

}
